package com.fjl.math;

public class MathTest {
	public static void main(String[] args) {

		//Math。floor()向下取整的意思
		System.out.println("Math.floor(1.5):"+Math.floor(1.5));
		System.out.println("Math.floor(1.0):"+Math.floor(1.0));
		System.out.println("Math.floor(0.9):"+Math.floor(-0.9));
		//Math.round()四舍五入的意思
		System.out.println("Math.round(1.5):"+Math.round(1.5));
		System.out.println("Math.round(1.6):"+Math.round(1.6));
		System.out.println("Math.round(1.4):"+Math.round(1.4));
		System.out.println("(long)0.5:"+(long)0.5);
		System.out.println("(long)0.7:"+(long)0.7);
		//Math.pow
		double r = Math.pow((9-1), 2);
		System.out.println(" Math.pow((9-1), 2):"+ Math.pow((9-1), 2));
		System.out.println("Math.pow(1/5, 64):"+Math.pow(9, 0.5));
	}
}
